import request from '@/config/axios'

// 查询文件
export const getKnowledgeData = (data: any) => {
  return request.post({ url: '/business/knowledge-base/page', data })
}

// 新增文件
export const addKnowledgeData = (data: any) => {
  return request.post({ url: '/business/knowledge-base/create', data })
}

// 更新文件
export const editKnowledgeData = (data: any) => {
  return request.post({ url: '/business/knowledge-base/update', data })
}

// 删除消息
export const deleteKnowledgeData = (id: string) => {
  return request.delete({ url: `/business/knowledge-base/delete?id=${id}` })
}